package cn.changhong.user.controller;

import cn.changhong.user.aop.ResultBean;
import cn.changhong.user.model.vo.AuthenticationVO;
import cn.changhong.user.service.AuthenticationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author zz
 * @Date
 **/
@RestController
@RequestMapping("user_manage/authentication")
public class AuthenticationController {
    @Autowired
    AuthenticationService authenticationService;


    @RequestMapping(value = "superAdmin/listAuthentication",method = RequestMethod.GET)
    @CrossOrigin
    public ResultBean<List<AuthenticationVO>> listAuthentication(){
        return new ResultBean(authenticationService.listAuthentication());
    }
}
